import request from "@/utils/request.js"

/**
 * 系统认证接口
 */
 export default {
    //系统登陆
    loginIn: function ({ loginName, password, loginCode }) {
         var param = {
            userName: loginName,
            password: password,
        };
        return request.post('/member-security/shiro-api/login', param);
    },

    // 退出登陆
    loginOut: function () {
         return request.post('/member-security/shiro-api/logout',{});
     },

    //记录登陆日志
     loginLog: function ({ip,city}) {
         var param={
             ip:ip,
             city:city                
         };
         return request.post('/member-security/loginlog-api/save', param);
     },
      //还原数据
     rollBackTables: function () {
         return request.post('member-security/loginlog-api/rollBackTables');
     }
 }